package org.geektimes.projects.user.service.impl;

import org.geektimes.projects.user.domain.User;
import org.geektimes.projects.user.repository.UserRepository;
import org.geektimes.projects.user.repository.UserRepositoryImpl;
import org.geektimes.projects.user.service.UserService;
import org.geektimes.projects.user.sql.DerbyConnectionManager;

/**
 * @Author: TongXing
 * @Date: 2021/3/3
 * @Version 1.0
 */
public class UserServiceImpl implements UserService {



    @Override
    public boolean register(User user) {

        UserRepository repository = new UserRepositoryImpl();

        return repository.save(user);
    }

    @Override
    public boolean deregister(User user) {
        return false;
    }

    @Override
    public boolean update(User user) {
        return false;
    }

    @Override
    public User queryUserById(Long id) {
        return null;
    }

    @Override
    public User queryUserByNameAndPassword(String name, String password) {
        return null;
    }
}
